package com.rp.system.po;

import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.Type;
import org.raptor.entity.BaseModel3;

/**
 * 系统日志
 * @author HuangJian
 *
 */
@Entity
@Table(name="RP_SYSTEM_SYSLOGS")
public class SysLog extends BaseModel3 {

	private static final long serialVersionUID = 3449766086294622086L;
	
	private String className;			//类名（全路径类名）
	private String methodName;			//方法名
	private String params;				//传入参数
	private String description;			//操作描述
	private String operResult;			//操作结果
	private String exceptionMsg;		//异常信息
	
	private String executorName;		//执行者姓名
	private String ip;					//IP
	
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getMethodName() {
		return methodName;
	}
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}
	
	@Lob
	@Type(type="org.springframework.orm.hibernate3.support.ClobStringType")
	public String getParams() {
		return params;
	}
	public void setParams(String params) {
		this.params = params;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getOperResult() {
		return operResult;
	}
	public void setOperResult(String operResult) {
		this.operResult = operResult;
	}
	@Lob
	@Type(type="org.springframework.orm.hibernate3.support.ClobStringType")
	public String getExceptionMsg() {
		return exceptionMsg;
	}
	public void setExceptionMsg(String exceptionMsg) {
		this.exceptionMsg = exceptionMsg;
	}
	public String getExecutorName() {
		return executorName;
	}
	public void setExecutorName(String executorName) {
		this.executorName = executorName;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	
}
